package com.cmcc.cmii.cmiiservicemanagement.config;

import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author Thanks
 */
@Configuration
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ServiceAutoConfiguration {
    private final ServiceHealthIndicator serviceHealthIndicator;

    @PostConstruct
    public void init(){
        serviceHealthIndicator.check();
    }

}
